/*
 * SPDX-License-Identifier: BSD-3-Clause
 *
 */

#ifndef HPM_DISP_PORT_H
#define HPM_DISP_PORT_H

#include <stdint.h>

typedef uint16_t color_t;

typedef struct {
    uint32_t height;
    uint32_t width;
}area_t;

typedef union {
    uint32_t elem;
    struct {
     uint8_t elem_byte[4];
    };
}audio_elem_t;

void hpm_key_init(void);
void hpm_key_scan(void);
uint32_t hpm_key_read(void);

void hpm_display_init(void);
void hpm_display_flush(area_t *area, color_t *buffer);


void hpm_audio_init(void);

void hpm_audio_play(void);

#endif
